{"version":3,"file":"text.bundle.map.js","names":["this","BX","Landing","exports","main_core","landing_node","Text","Node","constructor","super","escapeText","Utils","headerTagMatcher","Matchers","headerTag","changeTagName","textToPlaceholders","Runtime","loadExtension","Block","apply","arguments","type","tableBaseFontSize","onClick","bind","onPaste","onDrop","onInput","onKeyDown","onMousedown","onMouseup","node","addEventListener","document","onAllowInlineEdit","setAttribute","Loc","getMessage","onChange","preventAdjustPosition","preventHistory","superClass","call","UI","Panel","EditorPanel","getInstance","adjustPosition","History","push","event","code","onBackspaceDown","clearTimeout","inputTimeout","key","keyCode","which","top","window","navigator","userAgent","match","ctrlKey","metaKey","setTimeout","lastValue","getValue","isTable","tableFontSize","parseInt","getComputedStyle","srcElement","getPropertyValue","textContent","classList","contains","add","remove","onEscapePress","isEditable","currentNode","hide","disableEdit","preventDefault","clipboardData","getData","sourceText","encodedText","encode","formattedHtml","replace","RegExp","execCommand","text","onDocumentClick","fromNode","manifest","group","allowInlineEdit","Main","isControlsEnabled","stopPropagation","enableEdit","querySelectorAll","forEach","table","hasAttribute","prototype","prepareNewTable","textOnly","StylePanel","isShown","show","buttons","nodeTableContainerList","tableContainer","tableEditor","unselect","Tool","ColorPicker","hideAll","requestAnimationFrame","target","nodeName","parentElement","range","createRange","selectNode","getSelection","removeAllRanges","addRange","addTableButtons","isContentEditable","length","nodeTableContainer","TableEditor","default","getDesignButton","isHeader","getChangeTagButton","onChangeHandler","onChangeTag","contentEditable","designButton","Button","Design","html","attrs","title","onDesignShow","isAllowInlineEdit","getField","field","Field","selector","name","content","innerHTML","changeTagButton","setValue","value","preventSave","isSavePrevented","querySelector","cloneNode","prepareTable","test","nodeIsTable","tdTag","neededButtons","setTd","tableButtons","getTableButtons","tableAlignButtons","isCell","isButtonAddRow","isButtonAddCol","isNeedTablePanel","hideButtons","nodeTableList","nodeTable","tableButton","parentNode","children","Array","from","getAmountTableRows","neededButon","childNodes","childNodesArray","childNodesArrayPrepare","childNode","nodeType","neededPosition","indexOf","rows","row","rowChildPrepare","rowChildNode","getAmountTableCols","isSelectedAll","th","insertAfter","activeAlignButtonId","setActiveAlignButtonId","undefined","count","isIdentical","tableAlignButton","id","layout","ChangeTag","toLowerCase","activateItem","AlignTable","ColorAction","DeleteElementTable","StyleTable","CopyTable","DeleteTable","data","changeOptionsHandler","setClassesForRemove","className","element","selection","position","getRangeAt","startOffset","focusNode","Type","isNil","firstChild","focusNodeParent","allowedNodeName","includes","focusNodeContainer","createElement","append","contentNode","after"],"sources":["text.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,GACrC,SAAUC,EAAQC,EAAUC,GAC5B,aAEA,MAAMC,UAAaD,EAAaE,KAC9BC,cACEC,QACAT,KAAKU,WAAaT,GAAGC,QAAQS,MAAMD,WACnCV,KAAKY,iBAAmBX,GAAGC,QAAQS,MAAME,SAASC,UAClDd,KAAKe,cAAgBd,GAAGC,QAAQS,MAAMI,cACtCf,KAAKgB,mBAAqBf,GAAGC,QAAQS,MAAMK,mBAC3Cf,GAAGgB,QAAQC,cAAc,iCACzBjB,GAAGC,QAAQiB,MAAMZ,KAAKa,MAAMpB,KAAMqB,WAClCrB,KAAKsB,KAAO,OACZtB,KAAKuB,kBAAoB,KACzBvB,KAAKwB,QAAUxB,KAAKwB,QAAQC,KAAKzB,MACjCA,KAAK0B,QAAU1B,KAAK0B,QAAQD,KAAKzB,MACjCA,KAAK2B,OAAS3B,KAAK2B,OAAOF,KAAKzB,MAC/BA,KAAK4B,QAAU5B,KAAK4B,QAAQH,KAAKzB,MACjCA,KAAK6B,UAAY7B,KAAK6B,UAAUJ,KAAKzB,MACrCA,KAAK8B,YAAc9B,KAAK8B,YAAYL,KAAKzB,MACzCA,KAAK+B,UAAY/B,KAAK+B,UAAUN,KAAKzB,MAGrCA,KAAKgC,KAAKC,iBAAiB,YAAajC,KAAK8B,aAC7C9B,KAAKgC,KAAKC,iBA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